<script>
export default {
    name: 'Main',
}
</script>

<template>
    <el-container>
        <el-header class="header">
            <el-menu  mode="horizontal" 
                     :router="true" 
                     :ellipsis="false" 
                     background-color="#fff"
                     text-color="#545c64"
                     active-text-color="#00f">
                <el-menu-item index="/main">LOGO</el-menu-item>
                <div style="flex-grow: 1"></div>
                <el-menu-item index="/chgpwd">修改密码</el-menu-item>
                <el-menu-item index="/logout">退出</el-menu-item>
            </el-menu>
        </el-header>
        <el-container>
            <el-aside class="aside">
                <el-menu :router="true">
                    <el-menu-item index="/main/files">所有文件</el-menu-item>
                    <el-menu-item index="/main/own">我的文件</el-menu-item>
                    <el-menu-item index="/main/upload">文件上传</el-menu-item>
                </el-menu>
            </el-aside>
            <el-main class="main">
                <!--路由出口-->
                <router-view></router-view>
            </el-main>
        </el-container>
        <el-footer class="footer">
            &copy;2023 ECUT
        </el-footer>
    </el-container>
</template>

<style scoped>
:global(body) {
    margin: 0;
    padding: 0;
    background: #f8f8f8;
}
.header {
    padding: 0;
    height: 10vh;
    min-height: 80px;
    background: #fff;
}
.header li {
    height: 10vh;
    min-height: 80px;
}
.aside {
    padding: 1px 0;
    height: 80vh;
    background: #fff;
}
.main {
    padding: 1px 0;
}
.footer {
    padding: 0;
    height: 10vh;
    min-height: 50px;
    line-height: 50px;
    text-align: center;
    background: #fff;
}
</style>